<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/Blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/Blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/Blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/Blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/Blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/Blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/Blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="JavaScript," />










<meta name="description" content="前言起源 对象数组与二维数据表相似 工作中大部分接触对象数组，很多时候都是在对对象数组进行操作以及对其中的数据进行处理  所用数据不说明的情况，所用的数据一般指以下。 数据1234567891011121314151617181920212223242526272829303132333435363738394041424344454647let student &#x3D; [  &amp;#123;    id">
<meta property="og:type" content="article">
<meta property="og:title" content="Javascript对象数组操作参考">
<meta property="og:url" content="https://jingping-ye.github.io/Blog/2019/01/14/Javascript%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84%E6%93%8D%E4%BD%9C%E5%8F%82%E8%80%83/index.html">
<meta property="og:site_name" content="jingping.ye">
<meta property="og:description" content="前言起源 对象数组与二维数据表相似 工作中大部分接触对象数组，很多时候都是在对对象数组进行操作以及对其中的数据进行处理  所用数据不说明的情况，所用的数据一般指以下。 数据1234567891011121314151617181920212223242526272829303132333435363738394041424344454647let student &#x3D; [  &amp;#123;    id">
<meta property="article:published_time" content="2019-01-14T07:01:47.000Z">
<meta property="article:modified_time" content="2020-05-14T05:39:38.517Z">
<meta property="article:author" content="jingping.ye">
<meta property="article:tag" content="JavaScript">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/Blog/',
    scheme: 'Mist',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://jingping-ye.github.io/Blog/2019/01/14/Javascript对象数组操作参考/"/>





  <title>Javascript对象数组操作参考 | jingping.ye</title>
  








<meta name="generator" content="Hexo 4.2.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/Blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">jingping.ye</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">jingping.ye的Blog</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/Blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/Blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/Blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/Blog/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://jingping-ye.github.io/Blog/Blog/2019/01/14/Javascript%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84%E6%93%8D%E4%BD%9C%E5%8F%82%E8%80%83/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="jingping.ye">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/Blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="jingping.ye">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Javascript对象数组操作参考</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-01-14T15:01:47+08:00">
                2019-01-14
              </time>
            

            
              <span class="post-meta-divider">|</span>
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-check-o"></i>
              </span>
              
                <span class="post-meta-item-text">更新于&#58;</span>
              
              <time title="更新于" itemprop="dateModified" datetime="2020-05-14T13:39:38+08:00">
                2020-05-14
              </time>
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/Blog/categories/%E6%8A%80%E6%9C%AF/" itemprop="url" rel="index">
                    <span itemprop="name">技术</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.2k
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  6
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><h3 id="起源"><a href="#起源" class="headerlink" title="起源"></a>起源</h3><ul>
<li>对象数组与二维数据表相似</li>
<li>工作中大部分接触对象数组，很多时候都是在对对象数组进行操作以及对其中的数据进行处理</li>
</ul>
<h3 id="所用数据"><a href="#所用数据" class="headerlink" title="所用数据"></a>所用数据</h3><p>不说明的情况，所用的数据一般指以下。</p>
<h4 id="数据"><a href="#数据" class="headerlink" title="数据"></a>数据</h4><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> student = [</span><br><span class="line">  &#123;</span><br><span class="line">    id: <span class="number">1</span>,</span><br><span class="line">    stuNo: <span class="number">20190801</span>,</span><br><span class="line">    name: <span class="string">"王二二"</span>,</span><br><span class="line">    age: <span class="number">21</span>,</span><br><span class="line">    major: <span class="string">"计算机科学与技术"</span>,</span><br><span class="line">    isParty: <span class="number">1</span>,</span><br><span class="line">    sex: <span class="number">0</span>,</span><br><span class="line">  &#125;,</span><br><span class="line">  &#123;</span><br><span class="line">    id: <span class="number">2</span>,</span><br><span class="line">    stuNo: <span class="number">20190802</span>,</span><br><span class="line">    name: <span class="string">"李冬梅"</span>,</span><br><span class="line">    age: <span class="number">20</span>,</span><br><span class="line">    major: <span class="string">"计算机科学与技术"</span>,</span><br><span class="line">    isParty: <span class="number">0</span>,</span><br><span class="line">    sex: <span class="number">1</span>,</span><br><span class="line">  &#125;,</span><br><span class="line">  &#123;</span><br><span class="line">    id: <span class="number">3</span>,</span><br><span class="line">    stuNo: <span class="number">20190803</span>,</span><br><span class="line">    name: <span class="string">"张晓芳"</span>,</span><br><span class="line">    age: <span class="number">21</span>,</span><br><span class="line">    major: <span class="string">"汉语言文学"</span>,</span><br><span class="line">    isParty: <span class="number">1</span>,</span><br><span class="line">    sex: <span class="number">1</span>,</span><br><span class="line">  &#125;,</span><br><span class="line">  &#123;</span><br><span class="line">    id: <span class="number">4</span>,</span><br><span class="line">    stuNo: <span class="number">20190804</span>,</span><br><span class="line">    name: <span class="string">"张雨"</span>,</span><br><span class="line">    age: <span class="number">24</span>,</span><br><span class="line">    major: <span class="string">"汉语言文学"</span>,</span><br><span class="line">    isParty: <span class="number">1</span>,</span><br><span class="line">    sex: <span class="number">0</span>,</span><br><span class="line">  &#125;,</span><br><span class="line">  &#123;</span><br><span class="line">    id: <span class="number">5</span>,</span><br><span class="line">    stuNo: <span class="number">20190805</span>,</span><br><span class="line">    name: <span class="string">"张子豪"</span>,</span><br><span class="line">    age: <span class="number">22</span>,</span><br><span class="line">    major: <span class="string">"通信工程"</span>,</span><br><span class="line">    isParty: <span class="number">0</span>,</span><br><span class="line">    sex: <span class="number">0</span>,</span><br><span class="line">  &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<h4 id="数据含义说明"><a href="#数据含义说明" class="headerlink" title="数据含义说明"></a>数据含义说明</h4><table>
<thead>
<tr>
<th>属性名称</th>
<th>中文含义</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>id</td>
<td></td>
</tr>
<tr>
<td>stuNo</td>
<td>学号</td>
<td>8 位</td>
</tr>
<tr>
<td>name</td>
<td>名字</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>年龄</td>
<td></td>
</tr>
<tr>
<td>major</td>
<td>专业</td>
<td></td>
</tr>
<tr>
<td>isParty</td>
<td>是否是党员</td>
<td>否:0,是:1</td>
</tr>
<tr>
<td>sex</td>
<td>性别</td>
<td>男:0, 女:1</td>
</tr>
</tbody></table>
<h2 id="目录"><a href="#目录" class="headerlink" title="目录"></a>目录</h2><ul>
<li><a href="#检索">1 检索</a><ul>
<li><a href="#检索数据">1.1 检索数据</a></li>
</ul>
</li>
<li><a href="#排序">2 排序</a></li>
<li><a href="#过滤">3 过滤</a></li>
<li><a href="#插入数据">4 插入数据</a></li>
<li><a href="#操作对象数组">5 操作对象数组</a><ul>
<li><a href="#创建">5.1 创建</a></li>
<li><a href="#更新">5.2 更新</a></li>
<li><a href="#删除">5.3 删除</a></li>
<li><a href="#重命名">5.4 重命名</a></li>
</ul>
</li>
</ul>
<h2 id="根据-id-检索名字-id-唯一"><a href="#根据-id-检索名字-id-唯一" class="headerlink" title="根据 id 检索名字(id 唯一)"></a>根据 id 检索名字(id 唯一)</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> getName = <span class="function">(<span class="params">id, arr</span>) =&gt;</span> &#123;</span><br><span class="line">  <span class="keyword">const</span> filterArr = arr.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> item.id == id);</span><br><span class="line">  <span class="keyword">return</span> filterArr.length &gt; <span class="number">0</span> ? filterArr[<span class="number">0</span>].name : <span class="string">""</span>;</span><br><span class="line">&#125;;</span><br><span class="line"><span class="built_in">console</span>.log(getName(<span class="number">5</span>, student)); <span class="comment">// 张子豪</span></span><br></pre></td></tr></table></figure>

<h2 id="普通截取"><a href="#普通截取" class="headerlink" title="普通截取"></a>普通截取</h2><ul>
<li>截取 1</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">student.map(<span class="function">(<span class="params">&#123; id, name &#125;</span>) =&gt;</span> (&#123; id, name &#125;));</span><br><span class="line"></span><br><span class="line"><span class="comment">/*-----res-----*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">name</span>: <span class="string">"王二二"</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">name</span>: <span class="string">"李冬梅"</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<ul>
<li>截取 2</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">student.map(<span class="function">(<span class="params">&#123; id &#125;</span>) =&gt;</span> id);</span><br><span class="line"><span class="comment">/*----- res-----*/</span></span><br><span class="line">[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>];</span><br></pre></td></tr></table></figure>

<h2 id="截取属性并去重"><a href="#截取属性并去重" class="headerlink" title="截取属性并去重"></a>截取属性并去重</h2><ul>
<li>去重 1: 返回对象数组</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">getUniqueArray(array, item)&#123;</span><br><span class="line">    <span class="keyword">let</span> uniqueArray = [];</span><br><span class="line">    <span class="keyword">for</span> (<span class="keyword">let</span> i = <span class="number">0</span>; i &lt; array.length; i++) &#123;</span><br><span class="line">      <span class="keyword">let</span> flag = <span class="literal">true</span>;</span><br><span class="line">      <span class="keyword">for</span> (<span class="keyword">let</span> j = <span class="number">0</span>; j &lt; uniqueArray.length; j++) &#123;</span><br><span class="line">        <span class="keyword">if</span> ((uniqueArray[j][item] === array[i][item])) &#123;</span><br><span class="line">          flag = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">      &#125;</span><br><span class="line">      <span class="keyword">if</span> (flag) &#123;</span><br><span class="line">        uniqueArray.push(array[i]);</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">return</span> uniqueArray;</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure>

<ul>
<li>去重 2: 返回一维数组</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">[...new <span class="built_in">Set</span>(student.map(<span class="function">(<span class="params">&#123; sex &#125;</span>) =&gt;</span> sex))];</span><br><span class="line"></span><br><span class="line"><span class="comment">/*----- res -----*/</span></span><br><span class="line">[<span class="number">0</span>, <span class="number">1</span>];</span><br></pre></td></tr></table></figure>

<h2 id="过滤"><a href="#过滤" class="headerlink" title="过滤"></a>过滤</h2><ul>
<li><ol>
<li>比较运算符及逻辑运算: <code>= &gt; &lt; &gt;= ,&lt;=, !=,&lt;&gt; ,|| &amp;&amp;</code></li>
</ol>
</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">student.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> item.age &gt; <span class="number">20</span>);</span><br><span class="line"><span class="comment">/*-----res-----*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">];</span><br><span class="line"></span><br><span class="line">student.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> item.sex === <span class="number">0</span>);</span><br><span class="line"><span class="comment">/*----- res -----*/</span></span><br><span class="line">[&#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;];</span><br><span class="line"></span><br><span class="line">student.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> item.age &gt; <span class="number">20</span> &amp;&amp; item.age &lt; <span class="number">22</span>);</span><br><span class="line"><span class="comment">/*----- res -----*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<ol start="2">
<li>in 范围<br>查询学号为<code>[20190601,20190614]</code>的数组</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> range = [<span class="number">20190601</span>, <span class="number">20190614</span>];</span><br><span class="line"><span class="keyword">let</span> res = student.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> range.includes(item.stuNo));</span><br><span class="line"><span class="comment">/*----- res -----*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">stuNo</span>: <span class="number">20190614</span>, <span class="attr">name</span>: <span class="string">"李冬梅"</span>, <span class="attr">age</span>: <span class="number">20</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">0</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<ol start="3">
<li>模糊查询<br>查询名字为’张’的学生</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">student.filter(<span class="function">(<span class="params">item</span>) =&gt;</span> item.name.includes(<span class="string">"张"</span>));</span><br><span class="line"><span class="comment">/*----- res ------*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">4</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张雨"</span>, <span class="attr">age</span>: <span class="number">24</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<h2 id="排序"><a href="#排序" class="headerlink" title="排序"></a>排序</h2><ol>
<li>升序</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*------ 按年龄从小到大排序 ------ */</span></span><br><span class="line">student.sort(<span class="function">(<span class="params">a, b</span>) =&gt;</span> a.age &gt; b.age);</span><br><span class="line"><span class="comment">/*------ res ------*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">stuNo</span>: <span class="number">20190614</span>, <span class="attr">name</span>: <span class="string">"李冬梅"</span>, <span class="attr">age</span>: <span class="number">20</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">0</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">4</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张雨"</span>, <span class="attr">age</span>: <span class="number">24</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<ol start="2">
<li>降序</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*----- 按年龄从大到小排序 ------ */</span></span><br><span class="line">student.sort(<span class="function">(<span class="params">a, b</span>) =&gt;</span> a.age &lt; b.age);</span><br><span class="line"><span class="comment">/*------ res ------*/</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">4</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张雨"</span>, <span class="attr">age</span>: <span class="number">24</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">stuNo</span>: <span class="number">20190614</span>, <span class="attr">name</span>: <span class="string">"李冬梅"</span>, <span class="attr">age</span>: <span class="number">20</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">0</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<h2 id="插入数据"><a href="#插入数据" class="headerlink" title="插入数据"></a>插入数据</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">[...student, ...newStudent];</span><br><span class="line"><span class="comment">/*----- res ----- */</span></span><br><span class="line">[</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">stuNo</span>: <span class="number">20190601</span>, <span class="attr">name</span>: <span class="string">"王二二"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">stuNo</span>: <span class="number">20190614</span>, <span class="attr">name</span>: <span class="string">"李冬梅"</span>, <span class="attr">age</span>: <span class="number">20</span>, <span class="attr">major</span>: <span class="string">"计算机科学与技术"</span>, <span class="attr">isParty</span>: <span class="number">0</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">3</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张晓芳"</span>, <span class="attr">age</span>: <span class="number">21</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">4</span>, <span class="attr">stuNo</span>: <span class="number">20190620</span>, <span class="attr">name</span>: <span class="string">"张雨"</span>, <span class="attr">age</span>: <span class="number">24</span>, <span class="attr">major</span>: <span class="string">"汉语言文学"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">0</span> &#125;,</span><br><span class="line">  &#123; <span class="attr">id</span>: <span class="number">5</span>, <span class="attr">stuNo</span>: <span class="number">2019067</span>, <span class="attr">name</span>: <span class="string">"马宇"</span>, <span class="attr">age</span>: <span class="number">23</span>, <span class="attr">major</span>: <span class="string">"旅游管理"</span>, <span class="attr">isParty</span>: <span class="number">1</span>, <span class="attr">sex</span>: <span class="number">1</span> &#125;,</span><br><span class="line">];</span><br></pre></td></tr></table></figure>

<h3 id="操作对象数组"><a href="#操作对象数组" class="headerlink" title="操作对象数组"></a>操作对象数组</h3><h2 id="转为对象数组"><a href="#转为对象数组" class="headerlink" title="转为对象数组"></a>转为对象数组</h2><p>数据如下</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">let price &#x3D; &#123;</span><br><span class="line">  空调: 12200,</span><br><span class="line">  冰箱: 14440,</span><br><span class="line">  洗衣机: 1222</span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>

<p>具体操作</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">let newPrice &#x3D; [];</span><br><span class="line">for (let [k, v] of Object.entries(price)) &#123;</span><br><span class="line">  newPrice &#x3D; [...newPrice, &#123; name: k, value: v &#125;];</span><br><span class="line">&#125;</span><br><span class="line">&#x2F;*------ 结果 -----*&#x2F;</span><br><span class="line">[&#123;&quot;name&quot;:&quot;空调&quot;,&quot;value&quot;:12200&#125;,&#123;&quot;name&quot;:&quot;冰箱&quot;,&quot;value&quot;:14440&#125;,&#123;&quot;name&quot;:&quot;洗衣机&quot;,&quot;value&quot;:1222&#125;]</span><br></pre></td></tr></table></figure>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/Blog/tags/JavaScript/" rel="tag"># JavaScript</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/Blog/2019/01/14/git%E6%8F%90%E4%BA%A4%E4%BF%A1%E6%81%AF/" rel="next" title="git提交信息">
                <i class="fa fa-chevron-left"></i> git提交信息
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/Blog/2019/01/15/%E7%BD%91%E7%BB%9C%E4%BF%A1%E6%81%AF%E8%B5%84%E6%BA%90%E6%A3%80%E7%B4%A2/" rel="prev" title="网络信息资源检索">
                网络信息资源检索 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">jingping.ye</p>
              <p class="site-description motion-element" itemprop="description">jingping.ye的Blog|文章</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/Blog/archives/">
              
                  <span class="site-state-item-count">19</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/Blog/categories/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/Blog/tags/index.html">
                  <span class="site-state-item-count">22</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/yourname" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:yourname@gmail.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://plus.google.com/yourname" target="_blank" title="Google">
                      
                        <i class="fa fa-fw fa-google"></i>Google</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/yourname" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.facebook.com/yourname" target="_blank" title="FB Page">
                      
                        <i class="fa fa-fw fa-facebook"></i>FB Page</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://vk.com/yourname" target="_blank" title="VK Group">
                      
                        <i class="fa fa-fw fa-vk"></i>VK Group</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://stackoverflow.com/yourname" target="_blank" title="StackOverflow">
                      
                        <i class="fa fa-fw fa-stack-overflow"></i>StackOverflow</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://youtube.com/yourname" target="_blank" title="YouTube">
                      
                        <i class="fa fa-fw fa-youtube"></i>YouTube</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://instagram.com/yourname" target="_blank" title="Instagram">
                      
                        <i class="fa fa-fw fa-instagram"></i>Instagram</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="skype:yourname?call|chat" target="_blank" title="Skype">
                      
                        <i class="fa fa-fw fa-skype"></i>Skype</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#前言"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#起源"><span class="nav-number">1.1.</span> <span class="nav-text">起源</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#所用数据"><span class="nav-number">1.2.</span> <span class="nav-text">所用数据</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#数据"><span class="nav-number">1.2.1.</span> <span class="nav-text">数据</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#数据含义说明"><span class="nav-number">1.2.2.</span> <span class="nav-text">数据含义说明</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#目录"><span class="nav-number">2.</span> <span class="nav-text">目录</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#根据-id-检索名字-id-唯一"><span class="nav-number">3.</span> <span class="nav-text">根据 id 检索名字(id 唯一)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#普通截取"><span class="nav-number">4.</span> <span class="nav-text">普通截取</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#截取属性并去重"><span class="nav-number">5.</span> <span class="nav-text">截取属性并去重</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#过滤"><span class="nav-number">6.</span> <span class="nav-text">过滤</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#排序"><span class="nav-number">7.</span> <span class="nav-text">排序</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#插入数据"><span class="nav-number">8.</span> <span class="nav-text">插入数据</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#操作对象数组"><span class="nav-number">8.1.</span> <span class="nav-text">操作对象数组</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#转为对象数组"><span class="nav-number">9.</span> <span class="nav-text">转为对象数组</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">jingping.ye</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">15k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Mist</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/Blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/Blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/Blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/Blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/Blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/Blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/Blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/Blog/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/Blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/Blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/Blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
